.layui-card {
    border: 1px solid rgba(0, 188, 212, .5);
    box-shadow: 0 2px 12px 0 rgba(0, 0, 0, .1);
    background-color: transparent;
}
.layui-card-header{
    border-bottom: 1px solid rgba(0, 188, 212, .5);
    color: #fff;
}
h3 {
    font-size: 16px;
    font-weight: bold;
}
.layui-form-select dl {
    color: #fff;
    border: 1px solid rgba(42, 8, 69, .6);
    background: linear-gradient(to bottom, rgba(42, 8, 69,1), rgba(100, 65, 165,1));
}

.ftRed{
    color: #fe2216;
}
.ftBlue{
    color: #00BCD4;
}
.ftGreen{
    color: #28d428;
}
.ftGray{
    color: #9e9e9e;
}
.mainbody{
    padding: 5px;
}
.mainbody > div{
    height: 100%;
}

.left-part{
    height: 100%;
}
#quantity{
    text-align: center;
    margin-top: 10px;
}
#quantity h3{
    font-weight: normal;
}
#quantity h2{
    font-weight: bold;
    text-shadow: 1px 1px 3px #000;
    margin-bottom: 8px;
}
#quantity-pie{
    width: 100%;
    height: 200px;
    padding: 0 20px 20px;
    box-sizing: border-box;
}
.left-top .title , .alertList .title {
    text-shadow: 1px 1px 3px #333;
    font-size: 16px;
    text-align: center;
}
.alertList{
    margin-top: 15px;
    background: url("../images/box3.png") no-repeat;
    background-size: 100% 100%;
    background-position: 0 0;
    width: 100%;
    height: -moz-calc(100% - 335px);
    min-height: 350px;
    height: -webkit-calc(100% - 335px);
    height: calc(100% - 335px);
}
.alertList ul{
    font-size: 16px;
    margin: 10px 20px;
    height: calc(100% - 50px);
    overflow-y: auto;
}
.alertList ul li{
    padding: 10px 0;
    position: relative;
}
.alertList ul li:not(last-child){
    border-bottom: 1px solid rgba(0, 188, 212, .5);
}


.right-part {
    height: 100%;
    /*padding: 0 15px 15px;*/
    box-sizing: border-box;
}
.right-part .legend{
    margin: 5px 15px;
}
.alarm-lights {
    display: inline-block;
    width: 31px;
    height: 26px;
    vertical-align: middle;
    background: url("../images/icons-sprite.png") no-repeat;
}

.gray-alarm {
    background-position: -161px 0;
}

.green-alarm {
    background-position: -96px 0;
}

.yellow-alarm {
    background-position: -64px 0;
}

.red-alarm {
    background-position: 0 0;
}

.blue-alarm {
    background-position: -129px 0;
}

.right-part input[name="allMaintain"] + div.layui-form-switch{
    height: 28px;
    margin-top: 0;
}
.right-part input[name="allMaintain"] + div.layui-form-switch em{
    top: 2px;
}
.right-part input[name="allMaintain"] + div.layui-form-switch i{
    top: 6px;
}
.close-alarm{
    margin-right: 10px;
}
/*保养开关样式*/
.switch {
    position: relative;
    display: inline-block;
    width: 84px;
    height: 24px;
    vertical-align: middle;
    margin-left: 15px;
}
.main-table .switch {
    left: 50%;
    transform: translateX(-50%);
}
.switch.line{
    top: 15px;
}
.switch input {display:none;}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    -webkit-transition: .4s;
    transition: .4s;
}

input:checked + .slider {
    background-color: #2196F3;
}

input:focus + .slider {
    box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
    -webkit-transform: translateX(60px);
    -ms-transform: translateX(60px);
    transform: translateX(60px);
}

/* Rounded sliders */
.slider.round {
    border-radius: 34px;
}

.slider.round:before {
    border-radius: 50%;
}

.switch em{
    font-style: normal;
    position: absolute;
}
.switch.line em{
    top: -15px;
}
input + .slider + span .yes{
    left: 3px;
    color: #fff;
    opacity: 0;
}
input + .slider + span .not{
    color: #555;
    right: 3px;
    opacity: 1;
}
input:checked + .slider + span .yes{
    opacity: 1;
}
input:checked + .slider + span .not{
    opacity: 0;
}

.left-part .left-top{
    background: url(../images/box3.png) top center no-repeat;
    background-size: 100% 100%;
}

#motors-wrap{
    /*height: calc(100% - 40px);*/
    min-height: calc(100% - 40px);
    /*padding: 20px 25px;*/
    font-size: 16px;
    /*background: url(../images/box4.png) top center no-repeat;*/
    /*background-size: 100% 100%;*/
    border: 5px solid transparent;
    border-image: url(../images/box4.png) 30 round;
    box-sizing: border-box;
}
#motors-wrap > div{
    margin: 5px;
    /*padding: 10px;*/
    background: rgba(32, 148, 243, 0.1);
    box-shadow: 0 0 3px #00BCD4;
}
#motors-wrap .areaName{
    background: rgba(0, 188, 212, .5);
    padding: 5px;
}
.molist{
    display: flex;
    flex-wrap: wrap;
}
.motor{
    display: inline-block;
    text-align: center;
    width: 100px;
    padding: 5px 0;
    border-right: 1px solid rgba(32, 148, 243, 0.3);
}
/*.motor:not(:last-child){*/
/*    border-right: 1px solid #ccc;*/
/*}*/
.motor img{
    width: 38px;
    margin: 5px auto;
    display: block;
    cursor: pointer;
}

@media screen and (max-width: 768px){
    #motors-wrap{
        height: calc(100% - 75px);
    }
}